import request from '@/utils/request'

// 查询集团列表
export function listGroup(query) {
  return request({
    url: '/function/group/list',
    method: 'get',
    params: query
  })
}
// 查询集团不分页列表
export function selectGroup(query) {
  return request({
    url: '/function/group/listNoPage',
    method: 'get',
    params: query
  })
}
// 查询集团不分页列表
export function getNo() {
  return request({
    url: '/function/group/maxGroup',
    method: 'get'
  })
}

// 查询集团
export function getGroup(id) {
  return request({
    url: '/function/group/'+id,
    method: 'get'
  })
}

// 新增集团
export function addGroup(data) {
  return request({
    url: '/function/group',
    method: 'post',
    data: data
  })
}

// 修改集团
export function updateGroup(data) {
  return request({
    url: '/function/group',
    method: 'put',
    data: data
  })
}

// 删除集团
export function delGroup(id) {
  return request({
    url: '/function/group/' + id,
    method: 'delete'
  })
}

